 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">特殊提现管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="" method="get">
                    <table class="search-tab">
                        <tr>
                           
                            <th width="70">用户名:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="{$keyword}" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
							
						<td>验证密码:
						
						<input class="common-text" type="text" id="yanzheng"/>[输入正确的验证密码才可以操作提现]
						</td>
							<td>余额总额：{$yue}元</td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                           
                            <th>用户名</th>
                            <th>余额</th>
						
                           
                        </tr>
                       <foreach name="re" item="v">
                        <tr>
                            <td>{$v.username}</td>
							<td>
							<input type="text" id="money{$v.id}" onblur="xiugai({$v.id})" value="{$v.money}" />元
							
					</td>
                          
								
                        </tr>
					   </foreach>	
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>
	<script>
	
	  
	  function xiugai(i){
	  
	    var yanzheng=$('#yanzheng').val();
	  
	  
	     var money=$('#money'+i).val();
		 
		 $.post("{:U('Yue/xiugai')}",{'id':i,"money":money,"yanzheng":yanzheng},function(re){
		 
			  if(re==3){
				alert('验证密码错误');
			  }
		 
				if(re==1){
				 
				layer.tips('修改成功', '#money'+i);
			   
			   }
			   
			   if(re==2){
			   
				 alert('修改失败');
			   
			   }
		 
		 
		 })
		 
	  
	  
	  }
	
	
	   function save(i){
	   
	   
	     var yanzheng=$('#yanzheng').val();
	   
	     var money=$('#y'+i).val();
	   
	     $.post("{:U('Yue/save')}",{"id":i,"money":money,"yanzheng":yanzheng},function(re){
		 
		   if(re==1){
		     
			 alert('提现成功');location.reload();
		   
		   }
		   
		   if(re==2){
		   
		     alert('提现失败');
		   
		   }
		   
		   if(re==3){
		   
		     alert('验证密码错误');
		   
		   }
		 
		 
		 
		 })
	   
	   }
	   
	
	</script>
	
	
	
